package com.ee.chat.admin.service;

import com.ee.chat.common.bean.Result;
import com.ee.chat.common.entity.AdminRole;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IAdminRoleService {
    /**
     * 获取角色菜单功能id集合
     * @Author Shane
     * @Date 2019/7/24 2:05
     * @param
     * @return
     */
    List<Integer> getRoleMenuPermissionIds(Integer roleId);

    Result list(HttpServletRequest request, Integer page, Integer limit) throws Exception;

    Result del(HttpServletRequest request, List<Integer> ids) throws Exception;

    Result toEdit(HttpServletRequest request, Integer id) throws Exception;

    Result edit(HttpServletRequest request, AdminRole role, List<Integer> permissionIds) throws Exception;

    Result save(HttpServletRequest request, AdminRole role, List<Integer> permissionIds) throws Exception;

    Result changeStatus(HttpServletRequest request, Integer id) throws Exception;

}
